<?php echo $javascript->link('jquery.min.js', false); ?>
<?php echo $javascript->link('jquery-ui-1.7.2.custom.min.js', false); ?>
<?php echo $javascript->link('button', false); ?>

<?php echo $javascript->codeBlock('
    $(document).ready(function() {
        $("#UserUsername").focus();
    });
', array('inline' => false)); ?>

<div id="login" class="ui-widget ui-widget-content ui-corner-all">
    <div class="ui-widget-header">信息修改</div>

    <?php if ($session->check('message')): ?>
    <div class="ui-widget">
        <div class="ui-state-highlight ui-corner-all" style="margin: 0.5em 0; padding: 0.7em; text-align: left;">
            <span class="ui-icon ui-icon-alert" style="float: left; margin-right: 0.3em;"></span>
            <?php $session->flash();?>
        </div>
    </div>
    <?php endif; ?>

<?php
    echo $form->create('User', array('action' => 'modify',));
    echo $form->input('username', array('default' => $username, 'readonly' => 'readonly','style' => 'color:#9D9D9D'));
    echo $form->input('password');
    echo $form->input('nickname', array('maxLength’' => '25', 'label' => '昵称', 'default' => $nickname));
    echo $form->input('email', array('label' => 'Email', 'default' => $email));
    $themes = array('cupertino' => 'cupertino', 'flick' => 'flick', 'eggplant' => 'eggplant', 'overcast' => 'overcast', 
        'smoothness' => 'smoothness', 'ui-lightness' => 'ui-lightness');
    echo $form->input('theme', array('label' => '主题', 'options' => $themes, 'default' => $theme));
    echo $form->end( array('label' => '确认修改', 'class' => 'fg-button ui-state-default ui-corner-all ')); 
?>
</div>
